const Command = {
    setColor(color) {
        document.execCommand('foreColor', false, color)
    },

    setFontSize(size) {
        document.execCommand('fontSize', false, size)
    },

    setBold(bold) {
        document.execCommand('bold', false, bold)
    },

    setFormatBlock(format) {
        document.execCommand('formatBlock', false, `<${format}>`)
    }
}
export default Command